import java.util.List;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86185
 * Date: 2023-09-24
 * Time: 11:38
 */
 interface A {

}
class Test {
    int a = 0;
    public int aMethod(){
        return 0;
    }
    public static void main(String args[]){
        Test test = new Test();
        test.aMethod();
        int j = test.aMethod();
        System.out.println(j);
    }
    public static void hello() {
        System.out.println("hello");
    }
}
public class Exam922 {
    public static void main3(String[] args) {
        Test test=null;
        test.hello();
    }
    public static void main2(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        String[] strs = str.split(" ");
        for (int i = strs.length - 1; i >= 0; i--) {
            if(i == strs.length - 1) {
                System.out.print(strs[i]);
            } else {
                System.out.print(" " + strs[i]);
            }
        }
    }
    public static void main1(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int[] arr = new int[n];
        for (int i = 0; i < n; i++) {
            arr[i] = scanner.nextInt();
        }
        int flag1 = 0;
        int flag2 = 0;
        int count = 0;
        int i = 0;
        int j = 0;
        while(j < n - 1) {
            for (j = i; j < n - 1; j++) {
                if(arr[j] < arr[j + 1]) {
                    if(flag2 == 1) {
                        i = j + 1;
                        count++;
                        flag2 = 0;
                        break;
                    }
                    flag1 = 1;
                } else if (arr[j] > arr[j + 1]) {
                    if(flag1 == 1) {
                        i = j + 1;
                        count++;
                        flag1 = 0;
                        break;
                    }
                    flag2 = 1;
                }
            }
        }
        if(flag1 == 0 && flag2 == 0) {
            count = 1;
        }
        System.out.println(count + 1);
    }
}
